-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider admin defaults when creating shares #43024
Conversation
f09aea3
to
e8ff76f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something else that has come up while working on this in relation to maintaining "Allow editing" and "Default permissions"
So, the brainstorming is not over it seems, the second path, is simply to add "Default permissions" as a new option IF it is different from READ only ( |
cc: @jancborchardt |
As far as I can see, the issue reported at #42835 should be fixed via code and does not need a new entry in this list of presets.
But we should not replace an entry of those with "Default permissions" or anything like that. |
Sure, it does not necessarily need a new entry in the list of presets. But definitely needs making changes to how the presets work to avoid confusion. Adding another option or updating language are just other solutions paths suggested. So the new implication is that "Allow editing" is not always the selected/default option as is the case now. It would be dynamically selected. The only difference between this and my last suggestion is that no new entry would be added. To mitigate the issue of clearly understanding what default permissions are, I think it would be nice to have a way for the user to know that whatever permission was pres-elected for them is the default. This can be done by simply adding something like |
8e3a248
to
db03ac1
Compare
4a4c59c
to
388fd55
Compare
eed249c
to
0662682
Compare
0662682
to
cd58945
Compare
/compile / |
CI is a bit slow at the moment due to 28.0.2 release I guess, you could short cut by compiling locally and submit the assets. |
The current share logic always uses the default `BUNDLED_PERMISSIONS.ALL` which includes everything. This commit updates share creation logic to use `defaultPermissions` if set by admin for the creation of new shares. Signed-off-by: fenn-cs <[email protected]>
- Remove redundant initial state added - Call `getCapabilities()` in share config file. Signed-off-by: fenn-cs <[email protected]>
bde1408
to
9cff27b
Compare
/compile amend / |
Signed-off-by: fenn-cs <[email protected]> Signed-off-by: nextcloud-command <[email protected]>
9cff27b
to
f944d26
Compare
PHP unit failures unrelated. |
/backport to stable28 |
/backport to stable27 |
The current share logic always uses the default
BUNDLED_PERMISSIONS.ALL
which includes everything. This commit updates share creation logic to usedefaultPermissions
if set by admin for the creation of new shares.Resolves: #42835